package com.rinvay.utils.logger;

public class CommonAppender extends Appender
{

    public synchronized void printTrace(String tag, int level, String trace) {
        String Lv = "";
        switch(level) {
        case Log.VERBOSE_LEVEL:
            Lv = "VERBOSE";
            break;
        case Log.DEBUG_LEVEL:
            Lv = "DEBUG";
            break;
        case Log.INFO_LEVEL:
            Lv = "INFO";
            break;
        case Log.WARN_LEVEL:
            Lv = "WARN";
            break;
        case Log.ERROR_LEVEL:
            Lv = "ERROR";
            break;
//        case Log.FATAL_LEVEL:
//            Lv = "FATAL";
//            break;
        }
        System.out.println("[" + Lv + "][" + tag + "]" + trace);
    }


}
